package com.by.clone;

/**
 * @version 1.0
 * @Author 彭彦彬
 * @Date 2025/4/9 20:25
 * @注释
 */
public class Deep implements Cloneable{
    int[]arr;

    public Deep(int[] arr) {
        this.arr = arr;
    }

    @Override
    protected Object clone() throws CloneNotSupportedException {
       //对数组进行深克隆
        Deep copy= (Deep) super.clone();
        copy.arr=arr.clone();
        return copy;
    }
}
